package net.esj.auth.manager.logger;

import net.esj.auth.pojo.CoreAdmin;
import net.esj.auth.pojo.CoreAdminLog;
import net.esj.basic.core.engine.support.MelonSupporter;
import net.esj.basic.core.engine.util.logging.Log4jLogger;
import net.esj.basic.utils.DateUtils;

public class AdminLogger extends Log4jLogger {

	private CoreAdmin admin;
	
	public AdminLogger(Class clazz) {
		super(clazz);
	}

	private AdminLogger(String name) {
		super(name);
	}

	public void logger(String log,String comments){
		/*CoreAdminLog entity = new CoreAdminLog();
		entity.setAdmin(admin);
		entity.setComments(comments);
		entity.setLogger(log);
		entity.setGmtCreate(DateUtils.now());
		MelonSupporter.getService().save(entity);*/
	}

	public void setAdmin(CoreAdmin admin) {
		this.admin = admin;
	}
	
}
